package com.hope.hotel.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.hope.hotel.entity.dto.AmenitiesDTO;
import lombok.Data;

import java.util.List;

/**
 * 酒店设施信息实体类
 */
@Data
@TableName(value = "hotel_amenities", autoResultMap = true)
public class Amenities {
    
    /**
     * ID
     */
    @TableId
    private String id;
    
    /**
     * 酒店ID
     */
    private String hotelId;
    
    /**
     * 设施分类列表，JSON格式存储
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<AmenitiesDTO.AmenityCategory> categories;
} 